<template>
  <el-dialog title="查看图片"
             :visible.sync="show"
             append-to-body
             width="1000px">
    <img width="100%"
         :src="url"
         alt="">
  </el-dialog>
</template>

<script>
export default {
  data() {
    return {
      show: false,
      url: ''
    }
  },
  methods: {
    open(url) {
      this.url = url;
      this.show = true;
    }
  },
}
</script>

<style lang="scss" scoped>
</style>